package com.tfleo.mealssenger;

import com.tfleo.mealssenger.R;
import com.tfleo.mealssenger.notification.DemoNotification;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class DemoActivity extends Activity {
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.demo_layout);
		
		Button notifBtn = (Button) findViewById(R.id.notif_demo_btn);
		notifBtn.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				startService(new Intent(getApplicationContext(), DemoNotification.class));
			}
		});
		
		Button chatBtn = (Button) findViewById(R.id.chat_demo_btn);
		chatBtn.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(), ChatActivity.class);
				startActivity(i);
			}
		});
	}
}
